<div id='panel'>
<table align="center" width="100%" border="0" cellpadding="0" cellspacing="0">
	
	<tr>
		<td width="32%" style="line-height:22px; "><table width="100%"  border="0">
         
          <tr>
            <td valign="top"><p>
              <strong>My Inbox: </strong>
              <?php $message="select * from tbl_messages where recieverid='".$_SESSION['user_id_sess']."'";
			  $res=mysql_query($message);
			  $nrow=mysql_num_rows($res);
			  echo "<a href='index.php?inbox'>".$nrow."</a>";
			  ?><br>
            </p>            </td>
          </tr>
        </table></td>
	</tr>
</table>
<?php if($_SESSION['user_type_sess']==3) {?>
<br />
<table align="center" width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr class='head-tr'>
		<td colspan="3"><strong>Search Wholeseller Products </strong><strong> </strong></td>
	</tr>
	<tr>
		<td colspan="3"><form action="index.php" method="get"><table width="100%" border="0">
  <tr>
    <td valign="top">
	<input type="hidden" name="srchwhole" value="1" />
	<input type="hidden" name="sg2" id="sg2" value="wholeseller">
	<input name="key" type="text" id="key" value="<?php 
	if(!empty($_GET['key']))
	 echo $_GET['key']; ?>" size="10" /></td>
    <td width="84%"><table width="100%" border="0" id="tblPrice">
      <tr>
        <td colspan="2" align="left">
			<select name="state" id="state" style="width:145px;" onChange="funSelectCity(this.value,'search-city-whole-all');">
				<option value="">..Select State..</option>
				<?php			   
				   $sqlSelState="SELECT * FROM tbl_state where country_id='213'";
				   $rstSelState=mysql_query($sqlSelState);
				   while($rowSelState=mysql_fetch_array($rstSelState))
				   {
				   $st_id=$rowSelState['stateid'];
				   $st_name=$rowSelState['statename'];
				   echo "<option value='$st_id'>$st_name</option>";
				   }
				?>
			</select>		</td>
        </tr>
      <tr>
        <td colspan="2" align="left">
		<div id="search-city-whole-all">
			<select name="city" id="city" style="width:145px;">
				<option value="">..Select City..</option>
			</select>		
		</div></td>
        </tr>
      <tr>
        <td colspan="2" align="left">Price Range </td>
        </tr>
      <tr>
        <td width="16%" align="left">
        <input type="text" name="priceFrom" id="priceFrom" style="width:60px;" value="Min" onBlur="putIndicator(this,'Min')" onFocus="clearIndicator(this,'Min')" onClick="clearIndicator(this,'Min')">		</td>
        <td width="84%" align="left">
         <input type="text" name="priceTo" id="priceTo" style="width:60px;"  value="Max" onBlur="putIndicator(this,'Max')" onFocus="clearIndicator(this,'Max')" onClick="clearIndicator(this,'Max')">		</td>
      </tr>
      <tr>
        <td align="left"><input type="submit" value="Search" name="btnSrch"/></td>
        <td align="left">&nbsp;</td>
      </tr>
      
    </table></td>
  </tr>
</table></form></td>
	</tr>
</table>
<?php }
   if($sellflag!=1)
   {
?>
<br />
<form id="form1" name="form1" method="post" action="">
  <table width="100%" border="0">
    <tr>
      <td colspan="2"><strong>Pending Feedback Reviews for All Users </strong></td>
    </tr>
    <tr>
      <td width="16%">Rate</td>
      <td width="84%"><label>
        <select name="selReview" id="selReview">
          <option value="Great">Great</option>
          <option value="Adequate">Adequate</option>
          <option value="Negative">Negative</option>
        </select>
      </label></td>
    </tr>
    <tr>
      <td>Comment</td>
      <td><label>
        <textarea name="textfield" cols="30" rows="4"></textarea>
      </label></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td><label>
        <input type="submit" name="Submit" value="Submit" />
      </label></td>
    </tr>
  </table>
</form>
<?
   }
?>
</div>
<br>